str_1 = 'asdfs'
str_2 = 'd'
def judgment(str_1:str,str_2:str):
    return str_1.find(str_2) if str_2 in str_1 else None

print(judgment(str_1,str_2))

# 实现的很好